package io.bdmc.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 字典类型表 实体
 * </p>
 *
 * @author 黄露
 * @since 2021-04-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
// "SysDictType对象", description = "字典类型表")
public class SysDictType extends Model<SysDictType> {

  private static final long serialVersionUID = 1L;

  // "字典主键")
  @TableId(value = "dict_id", type = IdType.AUTO)
  private Integer dictId;

  // "字典名称")
  private String dictName;

  // "字典类型")
  private String dictType;

  // "状态（0正常 1停用）")
  private String status;

  // "创建者")
  private String createBy;

  // "创建时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private LocalDateTime createTime;

  // "更新者")
  private String updateBy;

  // "更新时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private LocalDateTime updateTime;

  // "备注")
  private String remark;

  @Override
  public Serializable pkVal() {
    return this.dictId;
  }

}
